emojichooser: Actually disable the recent section
authorGuido Günther <agx@sigxcpu.org>
Wed, 7 Dec 2022 18:26:29 +0000 (19:26 +0100)
committerGuido Günther <agx@sigxcpu.org>
Thu, 8 Dec 2022 12:12:54 +0000 (13:12 +0100)
The loop sets empty = FALSE when there are emojis but for that
to work we need to initialize the value to TRUE initially.

Fixes: 7928532bc5c33b2c6a10bae138ebc6dca1843cb0
(cherry picked from commit 89c816a614db4083e80862b631f4b3e44aa17eae)

gtk/gtkemojichooser.c

index 66f646641aeb4fca045ba5e67857584419c5e720..1ef9e519ff752f459570903e76e0b99461a362c9 100644 (file)
@@ -151,7 +151,7 @@ populate_recent_section (GtkEmojiChooser *chooser)
   GVariant *variant;
   GVariant *item;
   GVariantIter iter;
-  gboolean empty = FALSE;
+  gboolean empty = TRUE;
 
   variant = g_settings_get_value (chooser->settings, "recent-emoji");
   g_variant_iter_init (&iter, variant);